package com.bingo.demo.pojo;


import java.sql.Timestamp;
public class Comment {
    Integer id;
    Integer essayId;//所属文章的id
    Integer userId;//评论者的id
    String username;//评论者的名字
    Timestamp publishTime;//发布时间
    String content;

    public Comment() {
    }

    public Comment(Integer id, Integer essayId, Integer userId, String username, Timestamp publishTime, String content) {
        this.id = id;
        this.essayId = essayId;
        this.userId = userId;
        this.username = username;
        this.publishTime = publishTime;
        this.content = content;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEssayId() {
        return essayId;
    }

    public void setEssayId(Integer essayId) {
        this.essayId = essayId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Timestamp getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Timestamp publishTime) {
        this.publishTime = publishTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
